class_name = "CShip"
object_name = "Bayfield-class attack transport"
detail_type = "DET_SHIP" //list of types is in \inc\SimulationSystem\DetailTypes.inc

//////	PhysicsBody properties
//VisualImage = <int TYPE>,<string File_PathName>,<bool cast_shadows>

VisualImage=0,"graphics/ships/BayfieldShip/BayfieldShip.mgm",true
DistantLOD="LuaScripts/WorldObjects/Ships/DistantLODs/BayfieldShip_Distant.txt"
DLODArgs=63227,63228

ImageAttrs="IA_NOMINPIXELS","IA_NOMINZ","IA_NOCLIP_ANIM","IA_NOCLIP","IA_ALWAYSVISIBLE"

CollisionBody="graphics/ships/BayfieldShip/BayfieldShip.col"

SoundScript="LuaScripts/Sound/Vehicles/LibertyShip.cfg"

[attach=0]
	position= 4.738,14.493,1.069
	object = "LuaScripts/WorldObjects/Bots/BotShipper.txt"
[end]

[attach=1]
	position= 60.798, 11.911, 0
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/BayfieldShip-127mm.txt"
[end]
[attach=2]
	position= -69.34, 6.732, 0
	rotation= 0, 180, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/BayfieldShip-127mm.txt"
[end]

[attach=3]
	position= -62.144, 8.963, 5.334
	rotation= 0, 180, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LST-40mm.txt"
[end]
[attach=4]
	position= -62.144, 8.963, -5.334
	rotation= 0, 180, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LST-40mm.txt"
[end]

[attach=5]
	position= 43.341, 8.45, 8.784
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=6]
	position= 40.976, 8.45, 8.784
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=7]
	position= 40.976, 8.45, -8.784
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=8]
	position= 43.341, 8.45, -8.784
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=9]
	position= 66.093, 10.511, 4.616
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=10]
	position= 66.179, 10.500, -4.854
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=11]
	position= 4.716, 10.586, 9.379
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=12]
	position= 4.716, 10.586, -9.379
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=13]
	position= 4.39, 16.291, -7.31
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=14]
	position= 4.39, 16.291, 7.306
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=15]
	position= 1.924, 16.291, -8.954
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=16]
	position= 1.932, 16.291, 8.962
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=17]
	position= -0.555, 16.291, -9.923
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=18]
	position= -0.548, 16.291, 9.939
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=19]
	position= -3.161, 16.291, -9.927
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=20]
	position= -3.158, 16.291, 9.939
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=21]
	position= -38.211, 10.91, 9.716
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=22]
	position= -38.211, 10.91, -9.716
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=23]
	position= -59.787, 11.124, -1.584
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=24]
	position= -59.787, 11.124, 1.584
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=25]
	position= -57.586, 11.124, 3.266
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]
[attach=26]
	position= -57.586, 11.124, -3.266
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LCI-Oerlikon20mm.txt"
[end]

[attach=27]
	position= -18.739,19.648,2.545
	rotation= 0, 90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/DestroyerGleaves-kdp-sm.txt"
[end]
[attach=28]
	position= -18.739,19.648,-2.545
	rotation= 0, -90, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/DestroyerGleaves-kdp-sm.txt"
[end]
[attach=29]
	position= -61.94,12.132,0.0
	rotation= 0, 180, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/DestroyerGleaves-kdp-sm.txt"
[end]
[attach=30]
	position= 57.454,14.420,0.0
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/DestroyerGleaves-kdp-sm.txt"
[end]

[attach=31]
	position= 2.988,18.656,4.860
	rotation= 30, 0, 0
	object = "LuaScripts/WorldObjects/FlareGun.txt"
[end]

Script="LuaScripts\ObjectScripts\Vehicles\_ShipRadars.sc"

AttachedCameras = "LuaScripts\WorldObjects\fixcameras\Vehicles\BayfieldShip.txt"

CommandMonitor="LuaScripts/WorldObjects/VehicleMonitor.txt"


// 
logtreshold=0.0001
MaxDeleteTime = 600

length = 143.8
height = 9.0
width  = 22.0

TotalPoints = 8

point0=47,0,-7, 4226, 42, 14
point1=47,0,7, 4226, 42, 14
point2=20,0,-9.5, 4226, 42, 14
point3=20,0,9.5, 4226, 42, 14
point4=-20,0,-9.5, 4226, 42, 14
point5=-20,0,9.5, 4226, 42, 14
point6=-47,0,-7, 4226, 42, 14
point7=-47,0,7, 4226, 42, 14


//  .  ,   3D .
MaxWaveTime = 15	// 
WavePointSize = 4	// 
MaxWave = 400000	//  

Cx = 8000.0					//  
Cw = 100.0					//     

sendrate = 20				//    50     (=20    2.5)

mass = 16100000.0
MaxEngineForce = 3300000.0
MinEngineForce = 100
Csf=1.5
PrioritySpeed=9.5
MaxPropRotationRPM=120.0	//   (/)    
PropRotationSmoothK=0.01	//     
TurnShift=0.5				//        
RudderAngle=70				//    
Crudder=20					//    (    ,    )
Cwx=10.5					//     , ,  Cw   
Cwz=500						//     , ,  Cwx*20   
Cang=0.5					//  
RudderPos=-68.8,-2.6,0		//     (  )
FrictionPos=0,-8,0			//     
GlidingK = 0.0				//       X    ().   - 0
GlidingPosK = 0.8			//    . 1 -  , 0 -  .

// Damage model

energyloss="",true,6.0,1000		//     , true -       -,       ,        

Armor=6						//   

LifeRate=10600000
LifeRateFrag=10600000

EngineExhaustArg = 63250
BackTrailArg = 63228
FrontTrailArg = 63227
PropSprayArg=63233

[splash]
	pos = 72.66, 0.0, 0
	splashArg = 63224
	SplashTotalTime = 1.0
	SplashAttackTime = 0.1
	SplashKoeff = 30
	startArgValue = 0.5
	
	splashDiffHeight = 2.5
	// time = splashStackCount * splashstacktime
	splashStackCount = 50
	splashstacktime = 0.1
[end]

floathook=72.66, 0.3, 0,	100,false	//x,y,z, Arg, 3D water,      
floathook=-71.16, 0.3, 0,	101,false	//     
floathook=72.66, 0.3, 0,	102,true	//     
floathook=-71.16, 0.3, 0,	103,true	//      

OneSectionMode = true
SectionsHealthPercent = 1.0f

CommandSectionId = 4

MinMovementHealth = 0.3

SinkEffectScript = "LuaScripts/WorldObjects/explosions/Effects/SinkTransport.txt"

[section=0]
	Armor=6						//   

	LifeRate=10600000
	LifeRateFrag=10600000

	ConvexName = "collision_1","collision_1b"

	// effect
	EffectCoord = 43.666,1.421,6.949
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipMedium.txt"

	DestructArg = 761
	FiringArg = 63215
	SmokeArgBase = 63215
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 32200000	//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 644000	//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 2
	point0 = 0
	point1 = 1
[end]

[section=1]
	Armor=6						//   

	LifeRate=10600000
	LifeRateFrag=10600000

	ConvexName = "collision_2","collision_2a"

	// effect
	EffectCoord = 31.559,1.293,-8.142
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipMedium.txt"

	DestructArg = 771
	FiringArg = 63216
	SmokeArgBase = 63216
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 32200000	//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 644000	//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 1
	point0 = 2
[end]

[section=2]
	Armor=6						//   

	LifeRate=10600000
	LifeRateFrag=10600000

	ConvexName = "collision_3"

	// effect
	EffectCoord = -7.879,0.803,9.644
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipMedium.txt"

	DestructArg = 781
	FiringArg = 63217
	SmokeArgBase = 63217
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 32200000	//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 644000	//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 1
	point0 = 5

[end]

[section=3]
	Armor=6						//   

	LifeRate=10600000
	LifeRateFrag=10600000

	ConvexName = "collision_4","collision_4a"

	// effect
	EffectCoord = -49.647,2.695,6.862
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipMedium.txt"

	DestructArg = 791
	FiringArg = 63218
	SmokeArgBase = 63218
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.2			// ,    
	MinAttackHealth = 0.05			// ,    

	CollisionLifeRate = 32200000	//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 644000	//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 2
	point0 = 6
	point1 = 7

[end]

[section=4]
	Armor=2						//   

	LifeRate=5300000
	LifeRateFrag=5300000

	InfluenceOnTotalHealth = false

	ConvexName = "collision_5","collision_5a","collision_5b","collision_5c"

	// effect
	EffectCoord = 5.857,9.257,-1.139
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/VehicleNoDmg.txt"

	DestructArg = 901
	FiringArg = 63210
	SmokeArgBase = 63210
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.48			// ,    
	FireEffectTime = 300.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0.0016	//  ,  Life  
	Firing=0.0008					//     ,  Life  

	CollisionLifeRate = 6440000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 128800	//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      
[end]

DebugInfo = false